function unixtimestamp(datestr)
    -- StrSplit函数类似python里面的split
    local datelist = StrSplit(datestr, " ");
    local datebegin = StrSplit(datelist[1], "-");
    local dateend = StrSplit(datelist[2], ":");
    local day = datebegin[3];
    local month = datebegin[2];
    local year = datebegin[1];
    local hour = dateend[1];
    local minute = dateend[2];
    local second = dateend[3];
    os.execute("date +%s -d " .. "\"" .. datestr .. "\"");
    return os.time({day = day, month = month, year = year, hour = hour, minute = minute, second = second});
end
return unixtimestamp